package ev.utility;
public class TimeCal{
	public static int hh,mm,dd;
	public static void calTime(int minites){
		hh += minites/60;
		mm += minites%60;
		if(mm >= 60){
				mm = mm%60;
				hh++;
		}
		if(hh >= 24){
				hh = hh%24;
				dd +=1;
		}
		while(dd >=7){
			dd = dd%7;
		}
	}
	public static String getTime(){
		String h,m;
		if(hh < 10)
				h = "0"+hh;
		else
				h = hh + "";
		if(mm < 10)
				m = "0" + mm;
		else
				m = mm + "";
		return "Current time is "+hh+":"+mm;
	}
}
